/* eslint-disable space-before-function-paren */
/* eslint-disable comma-spacing */
/* eslint-disable space-before-blocks */
/* eslint-disable no-undef */
/* eslint-disable spaced-comment */
/* eslint-disable padded-blocks */
/* eslint-disable semi */
/* eslint-disable import/no-duplicates */
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import iView from 'iview'
import 'element-ui/lib/theme-chalk/index.css'
import { Table } from 'element-ui'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'babel-polyfill'
import Service from './service/service'
import vuex from 'vuex'

import 'styles/reset.css'
import 'styles/border.css'
import 'styles/iconfont.css'
import 'styles/style.css'

import 'iview/dist/styles/iview.css'
import 'swiper/dist/css/swiper.css'
import '../src/assets/css/index.css'

Vue.prototype.Services = Service;
Vue.config.productionTip = false;
Vue.use(ElementUI)
Vue.use(iView)
Vue.use(Table)
Vue.use(VueAwesomeSwiper)
Vue.use(vuex)

var store = new vuex.Store({
  //store对象
  state: {
    logStus: false
  },
  getters: { //添加getters
    getStus: (state) => {
      return state.logStus;
    }
  },
  mutations: {
    setStus(state,name){
      state.logStus = name
    }
  },
  actions: {
    setLogStus({commit,state},name){
      commit("setStus",name)
    }
  }
})

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>',
  render: h => h(App)
})
